<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>    
<%@ page import="cn.estore.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("UTF-8");
String username=request.getParameter("username");

Connection conn=null;
DBConnection jdbc=new DBConnection();
conn=jdbc.conn;

		String sql="delete from user where username=?";
		PreparedStatement stmt=conn.prepareStatement(sql);
		stmt.setString(1,username);
		
		int count=stmt.executeUpdate();
		if(count!=0)
		{
			out.print("删除成功！");
		}
		else{
			out.print("删除失败！");
		}
%>
</body>
</html>